package com.nervenets.shopping.service;

import com.nervenets.general.service.BaseService;
import com.nervenets.shopping.hibernate.domain.order.GroupBuyOrder;
import com.nervenets.shopping.hibernate.domain.order.GroupBuyOrderUser;

import java.math.BigDecimal;

public interface GroupBuyOrderService extends BaseService<GroupBuyOrder> {
    boolean join(GroupBuyOrderUser order);

    void successHandle();

    long sumOfContribution();

    long sumOfContribution(long startTime, long endTime);

    long sumOfBonus();

    long sumOfBonus(long startTime, long endTime);

    BigDecimal sumOfBonusByTime(long startTime, long endTime);
}
